package com.solo.eggsolo.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * @description private_message
 * @author yu
 * @date 2022-06-16
 */
public class PrivateMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 私信id
    */
    private Integer id;

    /**
    * 私信内容
    */
    private String content;

    /**
    * 是否已读
    */
    private String isRead;

    /**
    * 发送时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /**
    * 阅读时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readTime;

    /**
    * 发送者
    */
    private Integer sendId;

    /**
    * 接受者
    */
    private Integer reciverId;
    
    private User send;
    
    private User reciver;

	public User getSend() {
		return send;
	}


	public void setSend(User send) {
		this.send = send;
	}


	public User getReciver() {
		return reciver;
	}


	public void setReciver(User reciver) {
		this.reciver = reciver;
	}


	public PrivateMessage() {
    }


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getContent() {
		return content;
	}


	public void setContent(String content) {
		this.content = content;
	}


	public String getIsRead() {
		return isRead;
	}


	public void setIsRead(String isRead) {
		this.isRead = isRead;
	}


	public Date getSendTime() {
		return sendTime;
	}


	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}


	public Date getReadTime() {
		return readTime;
	}


	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}


	public Integer getSendId() {
		return sendId;
	}


	public void setSendId(Integer sendId) {
		this.sendId = sendId;
	}


	public Integer getReciverId() {
		return reciverId;
	}


	public void setReciverId(Integer reciverId) {
		this.reciverId = reciverId;
	}


	@Override
	public String toString() {
		return "PrivateMessage [id=" + id + ", content=" + content + ", isRead=" + isRead + ", sendTime=" + sendTime
				+ ", readTime=" + readTime + ", sendId=" + sendId + ", reciverId=" + reciverId + ", send=" + send
				+ ", reciver=" + reciver + "]";
	}
	
	

}
